﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace CaptchaControl.Model
{
    public class Captcha
    {
        public String Letter { get; set; }
        public ScaleTransform Scale { get; set; }
        public RotateTransform Rotate { get; set; }
        public SkewTransform Skew { get; set; }
        public TranslateTransform Translate { get; set; }
        public TransformGroup TransformGroup { get; set; }
        public int FontSize { get; set; }
        public Color FontColor { get; set; }
        public int FontWeight { get; set; }
        public LinearGradientBrush ForegroundGradient { get; set; }
        public int SpaceBetweenLetters { get; set; }

        public Captcha()
        {
            Letter = string.Empty;
            Scale = new ScaleTransform();
            Rotate = new RotateTransform();
            Skew = new SkewTransform();
            Translate = new TranslateTransform();
            TransformGroup = new TransformGroup();
            FontSize = 0;
            FontColor = new Color();
            FontWeight = 0;
            ForegroundGradient = new LinearGradientBrush();
            SpaceBetweenLetters = 0;
        }

        public Captcha(String letter,
                        ScaleTransform scale,
                        RotateTransform rotate,
                        SkewTransform skew,
                        TranslateTransform translate,
                        TransformGroup transformGroup,
                        int fontSize,
                        Color fontColor,
                        int fontWeight,
                        LinearGradientBrush gradientBrush,
                        int spaceBetweenLetters)
        {
            letter = letter;
            scale = scale;
            rotate = rotate;
            skew = skew;
            translate = translate;
            transformGroup = transformGroup;
            fontSize = fontSize;
            fontColor = fontColor;
            FontWeight = fontWeight;
            ForegroundGradient = gradientBrush;
            SpaceBetweenLetters = spaceBetweenLetters;
        }
    }
}
